import os

current_dir = os.path.dirname(os.path.abspath(__name__))

# address setting
bind = "0.0.0.0:5000"

# worker settings
workers = 1
worker_class = "gevent"
worker_connections = 1000
max_requests = 2000
capture_output = True
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
logfile = "/tmp/stock.log"
loglevel = "debug"

# ssl settings
keyfile = os.path.join(current_dir, "crt/flask.key")
certfile = os.path.join(current_dir, "crt/flask.crt")
ssl_version = 2
ca_certs = os.path.join(current_dir, "CA/cacert.pem")
do_handshake_on_connect = True
